// IOException.h: interface for the IOException class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_IOEXCEPTION_H__F3FCA06E_FF93_4FB1_80CC_AF9398C69B0D__INCLUDED_)
#define AFX_IOEXCEPTION_H__F3FCA06E_FF93_4FB1_80CC_AF9398C69B0D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <iostream>
#include "../types.h"
class IOException : public  std::exception
{
public:
	IOException();
	IOException(std::string& str);
	IOException(const char*);
	IOException(const char*,SOCKET csocket);
	IOException(std::string&,SOCKET csocket);
	virtual const char* what() const throw();
	virtual ~IOException();
	SOCKET getSocket(){
		return this->csocket;
	}
private:
	std::string mensaje;
	SOCKET csocket;

};

#endif // !defined(AFX_IOEXCEPTION_H__F3FCA06E_FF93_4FB1_80CC_AF9398C69B0D__INCLUDED_)
